package com.yjd.comm.fundservice.enums;

/**
 * 四要素验证渠道
 * Created by yangchangyan on 2018/2/11.
 */
public enum CertificationChannelEnum {
    UNKNOWN(0, "未知"),
    YIJIEDAI(1, "医界贷"),
    QIANKANG(2, "乾康")
    ;

    private int code;
    private String desc;

    public static CertificationChannelEnum parse(int code) {
        for (CertificationChannelEnum v : CertificationChannelEnum.values()) {
            if (v.getCode() == code) {
                return v;
            }
        }
        return null;
    }

    private CertificationChannelEnum(int code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
